<section class="panel">
    <h1>添加账户</h1>
    <form action="http://localhost:3000/users/app" method="POST">
        名称：<input type="text" name="name"><br/>
        账号：<input type="text" name="username"><br/>
        密码：<input type="text" name="password"><br/>
        <input type="submit" value="添加">
    </form>
    <table>
        <thead>
            <tr>
                <th>地址</th>
                <th>序号</th>
                <th>名称</th>
                <th>用户名</th>
                <th>密码</th>
            </tr>
        </thead>
        <tbody id="tableList">
            {{#each userlist}}
            <tr>
                <td>{{@this}}</td>
                <td>{{addOne @index}}</td>
                <td>{{name}}</td>
                <td>{{username}}</td>
                <td>{{password}}</td>
                <td>{{_id}}</td>
                <td>
                    <form action="http://localhost:3000/users/delete" method="POST">
                        <input type="hidden" name="_id" value="{{_id}}">
                        <input type="submit" value="删除">
                    </form>
                </td>
            </tr>
            {{/each}}
        </tbody>
    </table>
</section>